'''
Created on 2009-11-7

@author: jazy
some constants in pcap!
'''
PCAP_ERRBUF_SIZE=256
PCAP_VERSION_MAJOR=2
PCAP_VERSION_MINOR=4
PCAP_IF_LOOPBACK=1
PCAP_D_INOUT = 0
PCAP_D_IN=1
PCAP_D_OUT=2
PCAP_ERROR=-1    #/* generic error code */
PCAP_ERROR_BREAK=-2   # /* loop terminated by pcap_breakloop */
PCAP_ERROR_NOT_ACTIVATED=-3   # /* the capture needs to be activated */
PCAP_ERROR_ACTIVATED=-4    #/* the operation can't be performed on already activated captures */
PCAP_ERROR_NO_SUCH_DEVICE=-5    #/* no such device exists */
PCAP_ERROR_RFMON_NOTSUP=-6   # /* this device doesn't support rfmon (monitor) mode */
PCAP_ERROR_NOT_RFMON=-7    #/* operation supported only in monitor mode */
PCAP_ERROR_PERM_DENIED=-8   # /* no permission to open the device */
PCAP_ERROR_IFACE_NOT_UP=-9   # /* interface isn't up */